Skip to content

helios, ignition: add Muse Glimmer image profile and Windowed image layout - #229

Open
Raydius wants to merge 1 commit into
NVIDIA:mainfrom
Raydius:pr/muse-glimmer
Open

Raydius wants to merge 1 commit into
NVIDIA:mainfrom
Raydius:pr/muse-glimmer

Conversation

@Raydius

@Raydius Raydius commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Why this change is proposed

Following the 2026-11-24 repository-split triage on this PR, all recipe, reference, qualification, and model-test files move to a companion pull request in local-inference-lab/hyperflare-recipes (branch pr/muse-glimmer-nvfp4, local-inference-lab/hyperflare-recipes#109), leaving only runtime protocol, native Helios image frontend, and recipe-free Ignition frontend validation here.

Multimodal checkpoints whose vision encoder runs windowed self-attention over 32x32 patch cells before 2x2 spatial merging into bracketed <|patch|> tokens need two distinct runtime capabilities: native image preprocessing (MuseGlimmerImageSettings) and window-metadata staging (vision_cu_window_seqlens and vision_reverse_index) into the captured vision graph. Selecting text-graph input packing from ImagePreparationKind violates Helios's contract rule that preparation and layout enums stay independent; introducing an explicit WINDOWED_IMAGE_LAYOUT (ImageLayoutKind::Windowed) lets packing.rs and prompt.rs branch solely on ImageLayoutKind so any windowed encoder can reuse the layout contract without model-identity dispatch.

What changed

  • Protobuf and contract enums (helios/proto/runtime_core.proto, ignition/preparation/runtime_core_pb2.py, ignition/preparation/frontend.py, helios/src/model/contract.rs, helios/src/runtime_core/{describe,protobuf}.rs). Replaced the unsplit PR branch with additive wire definitions on 8da73911d: MUSE_GLIMMER_IMAGE_PREPARATION = 11, MuseGlimmerImageSettings (ImageSettings oneof member 11), and WINDOWED_IMAGE_LAYOUT = 11 (ImageLayoutKind::Windowed = 11). runtime_core_pb2.py is regenerated with protoc 36.1, and protobuf.rs adds a wire round-trip test for profile 11 alongside profile 10.
  • Shared resampling and prompt helpers (helios/src/frontend/images/resize.rs, patch_merge.rs). Replaced the (pillow, linear) boolean pair in resize.rs across existing image profiles' callers with a typed Filter enum and added resize::lanczos antialiased Lanczos-3 resampling. Extracted patch_merge::bracketed_prompt so PatchMerge and Windowed share one <|image_start|><|patch|>...<|image_end|> token expander.
  • Native Muse Glimmer image processor (helios/src/frontend/images/muse_glimmer.rs, mod.rs, helios/tests/fixtures/templates/muse_glimmer_nvfp4/). Added muse_glimmer::Processor (smart_resize at factor 28, antialiased Lanczos resize, [0.5, 0.5, 0.5] normalization, 32x32 window-ordered (temporal, channel, y, x) patch emission, four-tap bilinear position-table weights and indices, cu_window_seqlens, and reverse_index) and factored muse_glimmer::window_plan as a pure function of image geometry. The six existing ProcessedImages literal sites (deepseek4.rs, layouts/bracketed.rs, moonvit.rs, patches.rs, radio.rs, step.rs) and helios/src/model/tests.rs initialize the two window vectors as empty.
  • Layout-only input packing and prompt routing (helios/src/frontend/images/packing.rs, helios/src/model/prompt.rs). Routed ImageLayoutKind::Windowed to layouts::bracketed::prepare_input in prompt.rs, and keyed both packing::prepare and explicit tensor_layout arms (vision_pixel_values at patches x 1176, bilinear interpolation indices/weights, vision_positions, vision_cu_seqlens, vision_cu_window_seqlens, and vision_reverse_index) on ImageLayoutKind::Windowed alone. ImageLayoutKind::Bracketed has zero diff against 8da73911d, and no non-test line in packing.rs reads image_preparation.
  • Backward-compatible FLAREIMG\x01 reader and value-checked cache validation (helios/src/frontend/images/record.rs, conditioned.rs). ProcessedImages::encode writes FLAREIMG\x02 with trailing window counts and payloads, while ProcessedImages::decode branches on the version byte so existing FLAREIMG\x01 cached records decode with empty window vectors and preserve trailing-byte rejection. conditioned.rs removes wildcard arms in valid_processed and validates cached cu_window_seqlens and reverse_index by exact value against muse_glimmer::window_plan, recomputing on mismatch.
  • Removed from this PR. All files under ignition/recipes/, ignition/reference/, qualify/, and tests/recipes/, plus ignition/preparation/quantization.py, moved to the companion hyperflare-recipes PR (local-inference-lab/hyperflare-recipes#109) or were dropped.

Claimed benefit and result

  • Expected (standalone runtime compatibility). Existing runtime cores and FLAREIMG\x01 prepared-image cache records continue to load and decode without re-export, re-signing, or cache drops; cores declaring MUSE_GLIMMER_IMAGE_PREPARATION or WINDOWED_IMAGE_LAYOUT are rejected explicitly by older engines with an unsupported-enum error rather than misread.
  • Measured (combined runtime + recipes stack on SM120). Combining this runtime diff on the earlier main base 0a8c20f44 (08b3134a8, before 4ed5d8756 and 8da73911d) with companion hyperflare-recipes commit 8897d9ba in container image local/flare-ignition:08b3134a-e758d766 (sha256:1e879befe2b43618270cee6602dcae210c78b9c00b0179ba1fda3213275b04ee) exported and served core gb202-tp1-202611300932 on one NVIDIA RTX PRO 6000 Blackwell Workstation Edition (96 GB, SM120) at max_concurrency 16 and max_model_len 1048576 (9,969,664 KV tokens allocated across 62.8 GiB), completing text, multimodal PNG (Windowed layout), and 1,000,060-token passkey retrieval requests (3/3 depths passed).

Supporting evidence and limitations

  1. Combined-stack GPU export and native Helios serving (core_id = gb202-tp1-202611300932).

    • Artifact and configuration: Image local/flare-ignition:08b3134a-e758d766 (sha256:1e879befe2b43618270cee6602dcae210c78b9c00b0179ba1fda3213275b04ee), built from NVIDIA/hyperflare-inference commit 08b3134a89886dfeaf3541a99796429aa2cb2561 on earlier base 0a8c20f4443229d2292853f9477886911e5f00c6 (the GPU export ran on that earlier base before rebasing onto 8da73911d70d0fd694c3bb81fbc6edd4bfe4d189 as pushed head 6ca601d4e77472f15fe56fae59b7e545ba99d284, whose two intervening upstream commits 4ed5d8756 and 8da73911d touch only HTTP tool-call ID bounds and two stock Triton/Inductor CPU tests) and local-inference-lab/hyperflare-recipes commit 8897d9ba766049d5b20ae674296a3be54932ff77 (tree-identical to pushed head 359a4984d7432041227e9700b3bc50d09c497992 on base 18c9055ed5d9871373c366d8c2b8e9f3070d5f3c, joined via unpushed lock-pin commit e758d76641484af6c6412581ec37b013149efd1c with FlashInfer 86c9f67a). Exported original-el8/Muse-Glimmer-30B-NVFP4 (b47e1e9f, resolved as muse-glimmer-30b-w4a4) with --max-concurrency 16 --prompt-logprobs --mtp-draft-tokens 15 and automatic download of z-lab/Muse-Glimmer-30B-DFlash2 (b54ffdd1), then served gb202-tp1-202611300932 via flare run --memory-limit 0.99 --max-concurrency 16 on GPU 0 (RTX PRO 6000 Blackwell).
    • Startup and /v1/models: flare run verified 3 signatures, loaded 27.7 GiB of weights in 2.6s, prepared 17,941 kernels and 165 graphs at concurrency 16, allocated 62.8 GiB (77,888 KV pages / 9,969,664 KV tokens, 1,054 shared snapshot slots), and reported max_model_len: 1048576 and input_modalities: ["text", "image"] on GET /v1/models.
    • Text and image requests: A text chat completion (top_k=1, reasoning_strength="low") returned "The capital of France is Paris, which is traversed by the Seine River." (74 prompt tokens, 115 completion tokens). A multimodal chat completion with a 256x256 PNG split left-red #ff0000 / right-blue #0000ff processed 100 merged image tokens through muse_glimmer::Processor and ImageLayoutKind::Windowed staging and returned "The left half is red and the right half is blue." (181 prompt tokens, 85 completion tokens). Across those two requests /metrics recorded 150 accepted drafts over 23 batch-1 width-16 speculative rounds (6.52 accepted drafts/round).
    • 1M-token passkey retrieval: Running qualify/long_context_passkey.py --base-url http://127.0.0.1:8100 --lengths 1000000 --depths 0.1,0.5,0.9 --tokens-per-record 56.54 --max-tokens 1024 --template-kwargs '{"reasoning_strength": "low"}' (top_k=1) against gb202-tp1-202611300932 sent 1,000,060 prompt tokens per cell and passed 3/3 depths: depth 0.1 (passkey=74100, reply "74100", 576.1s, 2.44 accepted drafts/round), depth 0.5 (passkey=99362, reply "99362", 576.8s, 1.83 accepted drafts/round), and depth 0.9 (passkey=44101, reply "The service records you supplied contain the pass key.\n\n**Pass key: 44101**\n", 604.9s, 1.81 accepted drafts/round).
  2. CPU baseline comparison after rebase onto 8da73911d (and prior base 0a8c20f44).

    • cargo test --no-fail-fast --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server: 1,810 passed on this branch vs 1,797 passed on pristine 8da73911d (13 engram io_uring tests fail identically on both commits because the host caps RLIMIT_MEMLOCK at 8192 KiB instead of CI's 64 MiB), including muse_glimmer_image_settings_and_preparation_kind_round_trip_on_wire, frontend::images::packing (Windowed layout), version_1_record_decodes_with_empty_window_vectors_and_rejects_trailing_bytes, and cached_window_plan_values_are_validated_and_recomputed_on_mismatch. Reran helios/src/frontend/images/muse_glimmer.rs::tests::native_pixels_match_canonical_transformers_processor with .venv linked to a Python environment containing transformers and Pillow: passed.
    • pytest tests/preparation tests/cli: 1,157 passed on both this branch and pristine 8da73911d (and 1,221 passed on both 08b3134a8 and 0a8c20f44 when system openssl was in scope), including tests/preparation/test_core_boundary.py (4 passed), with 0 branch-only failures (123 locked-memory and host-environment cases fail identically on both commits).
  3. Unrun checks and material limitations (recorded in docs/TODO.txt).

    • 74 skipped Python tests in tests/preparation/: test_capture_cublas_workspace_cuda (1), test_capture_order_cuda (2), test_core_snapshot (2: payload fixture CUDA opt-in and external source publisher profile), test_core_storage::test_windows_host_range_stays_below_stalling_wddm_addresses (1: Windows WDDM), test_export_progress (2: PTY + CUDA opt-in), test_gelu_storage (1: CUDA opt-in), test_graph_local_scratch_cuda (3), test_inductor_tuning_cuda (12), test_inductor_workspace_lifetimes_cuda (1), test_memory_inventory (3), test_module_images (1), test_packed_weights_cuda (9), test_peer_storage_cuda (1: 2 GPUs + FLARE_RUN_TP_CUDA_TESTS=1), test_prompt_catalog (1: matching flag-off/flag-on exports), test_recorded_export_graph_cuda (2), test_runtime_core (13), test_runtime_dynamo (7), test_scratch_cuda (2), test_storage_lifetimes_cuda (6), test_unavailable_resources (1), and test_virtual_storage_cuda (1).
    • 83 ignored Rust helios tests: core::export::cache_tests::verify_actual_tp16_cached_payloads (1), cuda::tests (3), execution::threaded::cuda_tests (1), execution::transport::confidence_tests (1), grammar checkpoint tokenizer suites (4: Muse Spark, DeepSeek V4.1, Qwen3.8), offload GPU/codec/transfer suites (13), runtime_core CUDA/exported-core suites (11), scheduler release-mode cost/planning benchmarks (4), server checkpoint/CUDA suites (8: Muse Spark, Inkling 2, prompt prefill), and integration tests actual_qwen38_tp2 (1), actual_w4a16 (1), deepseek_encoder (1), deepseek_frontend (2), glm_frontend (1), image_admission (2), instruction_boundary (8), ordinary_tokens (7), parser_start (6), and reasoning_delimiters (8).
    • Other crates unaffected by this diff (eos, selene, selene-manager, flare, flare-cli) were not separately re-tested on CPU beyond building and running the flare binary inside local/flare-ignition:08b3134a-e758d766.

Merge order

  1. Merge this runtime PR (NVIDIA/hyperflare-inference#229) first so MUSE_GLIMMER_IMAGE_PREPARATION and WINDOWED_IMAGE_LAYOUT are on main.
  2. Advance uv.lock in local-inference-lab/hyperflare-recipes and merge the companion recipe PR (local-inference-lab/hyperflare-recipes#109).

Discord: djRadRacer

@Raydius
Raydius force-pushed the pr/muse-glimmer branch 2 times, most recently from a4e0df5 to 3914db3 Compare November 7, 2026 23:20
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 7, 2026
…formed Glimmer quantization a ValueError, archive with the PR changes

Lands the archived glimmer-activation-check-mapping-guard,
glimmer-pr-disclosure-fixes and upstream-muse-glimmer-pr changes, the synced
muse-glimmer-serving and upstream-contribution-branch specs, and the
glimmer-concurrency-ceiling scaffold. Code for the guard lives on
pr/muse-glimmer (NVIDIA#229, head 3914db3).

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 7, 2026
…r and are judged against upstream af0907d

Adds the Muse Glimmer recipe row (z-lab DFlash2 drafter, 1,048,576-token
context; needed until NVIDIA#229 merges), the
history-drafts A/B result, and the passkey probe in the qualification row.
Re-judges every row against upstream af0907d; only the FlashInfer pin
moved (1f8ed8a3 to 2e4f4c2c, still without FlashInfer NVIDIA#67).

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@original-el8 original-el8 added area:api Serving API, protocol encoding, tool parsing, and client-visible behavior. area:packaging Package assembly, verification, distribution, inspection, and loading. area:preparation Ignition checkpoint loading, tuning, compilation, capture, and export. enhancement New feature or request model:muse-glimmer Affected recipe or documented reproducer: muse-glimmer. Impact may be broader. triage:design-review Needs a maintainer scope, architecture, or contract decision before implementation or integration. labels Nov 8, 2026
@original-el8

Copy link
Copy Markdown
Collaborator

Categorized as triage:design-review for Muse Glimmer onboarding. This PR and #192 both introduce the muse-glimmer-30b-nvfp4 alias, but select different checkpoints and capabilities: this proposal adds images, DFlash2 and a 1,048,576-token context on SM120; #192 targets NVIDIA's mixed-precision checkpoint on GB300. Neither proposal is established as a replacement for the other.

A maintainer decision is needed on checkpoint selection, shared recipe/frontend ownership and the supported context contract before these overlapping definitions merge. Exact-branch GPU capture, export and native serving remain untested here; fork measurements with different deferred-copy lowering do not qualify this branch. Keep those acceptance checks separate from the reported CPU and native-library test results.

@Raydius GitHub reports merge conflicts with main; local git merge-tree confirms them for PR head 67860fba4562 against main at 91cfb3695f10. Conflicting files:

  • ignition/recipes/__init__.py

Please reconcile these files with main and rerun the checks affected by the resolution.

@Raydius

Raydius commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto main 91cfb369 (head 8d3c0e81). The conflict in ignition/recipes/__init__.py is the recipes() tuple, resolved with kimi31 after kimi3 and muse_glimmer_nvfp4 last; the alias-list expectation in tests/cli/test_models.py gains kimi-k3.1-pro accordingly. tests/cli/test_models.py, test_commands.py, test_planning.py, and the Muse Glimmer CPU tests: 296 passed; the 3 failures are the same on main at 91cfb369 (the test_commands.py alias expectation that #212 corrects, and two test_planning.py cases failing on this host's collective policy). The Protobuf additions do not collide (MuseGlimmerImageSettings is field 10, main's CompressedPreparedWeightCatalog is field 17). Export and serving on this exact branch remain unverified, as the description states.

Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 8, 2026
…n; archive

Archives the hotfix-lane change that rebased `pr/muse-glimmer` (upstream
PR NVIDIA#229) onto upstream `main` 91cfb36: the `recipes()` tuple conflict in
`ignition/recipes/__init__.py` resolved as the union, the alias-list
expectation in `tests/cli/test_models.py` extended with `kimi-k3.1-pro`,
head 8d3c0e8 pushed and confirmed mergeable with every commit's trailers
unchanged.

Validation: radflow-lint clean on the archived change; no code in this
repository changes.

Design-Signed-Off-By: Claude Fable 5.1 (claude-fable-5-1); design-review=a38f
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Raydius

Raydius commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto main d2b5c5f3; the new head is 5264a595.

Conflict. The only conflict was ignition/preparation/runtime_package_pb2.py. main added RebuildManifest.online_mxfp8_scope = 30, and this PR adds MUSE_GLIMMER_IMAGE_PREPARATION = 10 and the ImageSettings.muse_glimmer = 10 oneof member. The numbers are distinct, and runtime_package.proto merged cleanly. Because the generated module stores the whole schema as one serialized descriptor, it was regenerated from the merged proto with libprotoc 35.1 rather than merged by hand. The committed file equals a fresh regeneration.

Checks affected by the resolution. This branch and pristine d2b5c5f3 were run with the same interpreter and -m 'not cuda'. tests/preparation, tests/cli/test_planning.py, tests/cli/test_models.py, the Muse Glimmer recipe and frontend tests, and Helios cargo test --lib -- runtime_package frontend::images model::tests show no failure only on the branch. On the base, five cases fail that pass here: the muse_spark top_p row and four alias-list cases, whose expectations this PR updates. The failures common to both come from the host environment: an older b12x in the interpreter, the native export extension, and missing chat-template fixtures. The description lists the counts.

Other changes in this push. All three commit messages and the description now follow the four-part order required by fc2c914c, and the acknowledgments are renewed at design-review=3ad6. The Muse Glimmer section of docs/model-preparation.md had four errors, now corrected:

  • it named a flare run --max-context-tokens flag that exists only on the fork;
  • it gave a passkey-probe command for a module this branch does not ship;
  • it described Add Muse Glimmer mixed-precision text recipe #192's recipe as upstream;
  • it stated a graph-inventory figure that commit 3 had superseded.

No code or test changed beyond the regenerated module. Export and serving of this exact branch remain unverified, as the description states.

On the overlap with #192. The two PRs target different checkpoints that cannot share a recipe. Both checkpoints have the same architecture, but their quantization layouts are incompatible:

  • original-el8/Muse-Glimmer-30B-NVFP4 puts NVFP4 W4A4 on all 416 decoder projections and keeps a BF16 lm_head.
  • nvidia/Muse-Glimmer-30B-NVFP4 mixes 180 FP8 targets with 213 NVFP4 W4A16 targets, including lm_head.

Each recipe's checkpoint check rejects the other checkpoint. The model cards describe them the same way: "NVIDIA NVFP4 W4A4" on "416 decoder linear projections across 52 layers" for this one, and "a mixed precision checkpoint with W4A16 NVFP4 weights and FP8 weights and activations" for NVIDIA's.

@YouNeedCryDear, would you be willing to give #192 an alias that names its mixed precision, so that this PR's muse-glimmer-30b-nvfp4 continues to mean the uniform-NVFP4 checkpoint? The exact name is your call.

Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 9, 2026
…tream d2b5c5f; archive

PR NVIDIA#229 (pr/muse-glimmer) conflicted with upstream main d2b5c5f, and the
rebase pulled in upstream's fc2c914, which changed the design checklist
digest to 3ad6 and requires commit messages and PR descriptions to explain
why, what changed, the claimed result, and the evidence, in that order.

This commit archives the change that did the rebase and updates one main
spec. The archived record holds the proposal, design (with its peer-review
verdict), tasks with evidence, the spec delta, and the verification report.
openspec/specs/upstream-contribution-branch/spec.md: the requirement
"Commits satisfy upstream's contribution rules" now requires that four-part
order for commit messages and PR descriptions, figures labeled by the base or
package they were measured on, no process assurances, and a full re-review
and re-acknowledgment of every commit after a rebase across a checklist
change. Before, it listed problem, resulting behavior, compatibility,
validation, and authorship.

Result: the PR branch is now 5264a59 on d2b5c5f and GitHub reports it
mergeable; this repository's records describe that state. No code changes.

Evidence: openspec validate --specs passes all 9 specs; the change's
verification.md records a PASS from a fresh-context audit; radflow-lint
reports the change clean apart from one warning that it cannot parse
evidence citations to log files outside the repository. The PR branch's own
validation (branch against base d2b5c5f, CPU only) is recorded in the
archived tasks.md; GPU tests, export, and serving of the branch were not run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 10, 2026
…formed Glimmer quantization a ValueError, archive with the PR changes

Lands the archived glimmer-activation-check-mapping-guard,
glimmer-pr-disclosure-fixes and upstream-muse-glimmer-pr changes, the synced
muse-glimmer-serving and upstream-contribution-branch specs, and the
glimmer-concurrency-ceiling scaffold. Code for the guard lives on
pr/muse-glimmer (NVIDIA#229, head 3914db3).

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 10, 2026
…r and are judged against upstream af0907d

Adds the Muse Glimmer recipe row (z-lab DFlash2 drafter, 1,048,576-token
context; needed until NVIDIA#229 merges), the
history-drafts A/B result, and the passkey probe in the qualification row.
Re-judges every row against upstream af0907d; only the FlashInfer pin
moved (1f8ed8a3 to 2e4f4c2c, still without FlashInfer NVIDIA#67).

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 10, 2026
…n; archive

Archives the hotfix-lane change that rebased `pr/muse-glimmer` (upstream
PR NVIDIA#229) onto upstream `main` 91cfb36: the `recipes()` tuple conflict in
`ignition/recipes/__init__.py` resolved as the union, the alias-list
expectation in `tests/cli/test_models.py` extended with `kimi-k3.1-pro`,
head 8d3c0e8 pushed and confirmed mergeable with every commit's trailers
unchanged.

Validation: radflow-lint clean on the archived change; no code in this
repository changes.

Design-Signed-Off-By: Claude Fable 5.1 (claude-fable-5-1); design-review=a38f
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 10, 2026
…tream d2b5c5f; archive

PR NVIDIA#229 (pr/muse-glimmer) conflicted with upstream main d2b5c5f, and the
rebase pulled in upstream's fc2c914, which changed the design checklist
digest to 3ad6 and requires commit messages and PR descriptions to explain
why, what changed, the claimed result, and the evidence, in that order.

This commit archives the change that did the rebase and updates one main
spec. The archived record holds the proposal, design (with its peer-review
verdict), tasks with evidence, the spec delta, and the verification report.
openspec/specs/upstream-contribution-branch/spec.md: the requirement
"Commits satisfy upstream's contribution rules" now requires that four-part
order for commit messages and PR descriptions, figures labeled by the base or
package they were measured on, no process assurances, and a full re-review
and re-acknowledgment of every commit after a rebase across a checklist
change. Before, it listed problem, resulting behavior, compatibility,
validation, and authorship.

Result: the PR branch is now 5264a59 on d2b5c5f and GitHub reports it
mergeable; this repository's records describe that state. No code changes.

Evidence: openspec validate --specs passes all 9 specs; the change's
verification.md records a PASS from a fresh-context audit; radflow-lint
reports the change clean apart from one warning that it cannot parse
evidence citations to log files outside the repository. The PR branch's own
validation (branch against base d2b5c5f, CPU only) is recorded in the
archived tasks.md; GPU tests, export, and serving of the branch were not run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 11, 2026
The README patch notes on deploy judged each patch's "Still needed" verdict
against upstream e774a46, the stack base. Upstream main has since moved to
cbf21a1, and qualify/results/dflash2-paths-c16/ gained a measurement of A16
decode on the MXFP8-draft DFlash2 path that the patch notes did not mention.

The "Still needed" line now names cbf21a1 and states that its two commits
above the stack base (NVIDIA#261, WinUI model metadata; NVIDIA#260, RTX Spark revision
detection and failed-download cleanup) change no file a fork patch changes;
the only file both sides edit is docs/TODO.txt. The stack base stays
e774a46 because the fork has not been rebased. The DFlash2 qualification
tools entry now reports that A16 decode lowers code_edit on that path from
555.9 to 518.7 tok/s at concurrency 1 and the 16-client aggregate from
1,231.2 to 1,152.0 tok/s, so the fork serves the path with A16 decode off.

Result: every active patch remains needed against cbf21a1, and the notes
record the served configuration's A16 decision with its numbers.

Evidence: the intersection of files changed in e774a46..upstream/main and
e774a46..deploy contains only docs/TODO.txt. The pull requests that would
retire patches, NVIDIA/spark-local-inference NVIDIA#211, NVIDIA#212 and NVIDIA#229 and
local-inference-lab/flashinfer NVIDIA#67, are open as of 2026-11-11. The A16
figures are copied from qualify/results/dflash2-paths-c16/README.md (arm Q
against arm QA, three trials per setting, recorded in e3ff125). No code
changes; no tests run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=cfcf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@original-el8

Copy link
Copy Markdown
Collaborator

@Raydius GitHub reports merge conflicts with main, confirmed locally with git merge-tree for PR head 5264a5959137 against main 97cfeb0001f1. Conflicting paths:

  • ignition/components/dflash2.py
  • ignition/preparation/runtime_package_pb2.py
  • tests/preparation/test_checkpoint_source.py

Please reconcile the branch with main and rerun the checks affected by the resolution.

Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 16, 2026
…formed Glimmer quantization a ValueError, archive with the PR changes

Lands the archived glimmer-activation-check-mapping-guard,
glimmer-pr-disclosure-fixes and upstream-muse-glimmer-pr changes, the synced
muse-glimmer-serving and upstream-contribution-branch specs, and the
glimmer-concurrency-ceiling scaffold. Code for the guard lives on
pr/muse-glimmer (NVIDIA#229, head 3914db3).

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 16, 2026
…r and are judged against upstream af0907d

Adds the Muse Glimmer recipe row (z-lab DFlash2 drafter, 1,048,576-token
context; needed until NVIDIA#229 merges), the
history-drafts A/B result, and the passkey probe in the qualification row.
Re-judges every row against upstream af0907d; only the FlashInfer pin
moved (1f8ed8a3 to 2e4f4c2c, still without FlashInfer NVIDIA#67).

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 16, 2026
…n; archive

Archives the hotfix-lane change that rebased `pr/muse-glimmer` (upstream
PR NVIDIA#229) onto upstream `main` 91cfb36: the `recipes()` tuple conflict in
`ignition/recipes/__init__.py` resolved as the union, the alias-list
expectation in `tests/cli/test_models.py` extended with `kimi-k3.1-pro`,
head 8d3c0e8 pushed and confirmed mergeable with every commit's trailers
unchanged.

Validation: radflow-lint clean on the archived change; no code in this
repository changes.

Design-Signed-Off-By: Claude Fable 5.1 (claude-fable-5-1); design-review=a38f
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 16, 2026
…tream d2b5c5f; archive

PR NVIDIA#229 (pr/muse-glimmer) conflicted with upstream main d2b5c5f, and the
rebase pulled in upstream's fc2c914, which changed the design checklist
digest to 3ad6 and requires commit messages and PR descriptions to explain
why, what changed, the claimed result, and the evidence, in that order.

This commit archives the change that did the rebase and updates one main
spec. The archived record holds the proposal, design (with its peer-review
verdict), tasks with evidence, the spec delta, and the verification report.
openspec/specs/upstream-contribution-branch/spec.md: the requirement
"Commits satisfy upstream's contribution rules" now requires that four-part
order for commit messages and PR descriptions, figures labeled by the base or
package they were measured on, no process assurances, and a full re-review
and re-acknowledgment of every commit after a rebase across a checklist
change. Before, it listed problem, resulting behavior, compatibility,
validation, and authorship.

Result: the PR branch is now 5264a59 on d2b5c5f and GitHub reports it
mergeable; this repository's records describe that state. No code changes.

Evidence: openspec validate --specs passes all 9 specs; the change's
verification.md records a PASS from a fresh-context audit; radflow-lint
reports the change clean apart from one warning that it cannot parse
evidence citations to log files outside the repository. The PR branch's own
validation (branch against base d2b5c5f, CPU only) is recorded in the
archived tasks.md; GPU tests, export, and serving of the branch were not run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 16, 2026
The README patch notes on deploy judged each patch's "Still needed" verdict
against upstream e774a46, the stack base. Upstream main has since moved to
cbf21a1, and qualify/results/dflash2-paths-c16/ gained a measurement of A16
decode on the MXFP8-draft DFlash2 path that the patch notes did not mention.

The "Still needed" line now names cbf21a1 and states that its two commits
above the stack base (NVIDIA#261, WinUI model metadata; NVIDIA#260, RTX Spark revision
detection and failed-download cleanup) change no file a fork patch changes;
the only file both sides edit is docs/TODO.txt. The stack base stays
e774a46 because the fork has not been rebased. The DFlash2 qualification
tools entry now reports that A16 decode lowers code_edit on that path from
555.9 to 518.7 tok/s at concurrency 1 and the 16-client aggregate from
1,231.2 to 1,152.0 tok/s, so the fork serves the path with A16 decode off.

Result: every active patch remains needed against cbf21a1, and the notes
record the served configuration's A16 decision with its numbers.

Evidence: the intersection of files changed in e774a46..upstream/main and
e774a46..deploy contains only docs/TODO.txt. The pull requests that would
retire patches, NVIDIA/spark-local-inference NVIDIA#211, NVIDIA#212 and NVIDIA#229 and
local-inference-lab/flashinfer NVIDIA#67, are open as of 2026-11-11. The A16
figures are copied from qualify/results/dflash2-paths-c16/README.md (arm Q
against arm QA, three trials per setting, recorded in e3ff125). No code
changes; no tests run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=cfcf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@yatesdr yatesdr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you clarify these three points, and change them where needed?

  1. Export and serving from this branch. The description says export and serving of this branch have not been run yet, and the GPU results come from packages built on the fork. Please export and serve from the branch itself, after the rebase below, and post the result.
  2. The 1,048,576-token context. The recipe declares CONTEXT = 1048576, eight times the checkpoint's native 131,072, with no RoPE scaling, because the sliding layers are bounded at 2,048 tokens and the full layers carry no positional encoding. The evidence beyond the native length is a passkey probe on a fork package (14 of 15 cells). If the full context is intended, please add evidence beyond retrieval, such as a long-context task and a check that shorter prompts are unaffected; otherwise declare the native 131,072.
  3. Conflicts with main. The branch needs a rebase onto current main.

@Raydius

Raydius commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Rebased onto main 66b473c3; the new head is eebbf1dd (three commits, as before).

Why the rebase is more than a conflict resolution. Since the previous base d2b5c5f3, main renamed the runtime package to the runtime core, gave image-preparation number 10 to the padded-grid profile, and moved model forwards to per-call metadata with Inductor-planned temporaries. The branch's recipe bound its buffers at construction and used number 10, so it could not prepare on main after a textual merge.

How each class of conflict was resolved.

  • Protobuf and readers. The Muse Glimmer profile moves into helios/proto/runtime_core.proto at number 11 (MUSE_GLIMMER_IMAGE_PREPARATION = 11, ImageSettings.muse_glimmer = 11); number 10 stays padded-grid. runtime_core_pb2.py is regenerated with libprotoc 35.1, and the reader hunks moved to helios/src/runtime_core/. main's serialized_padded_grid_profile_selects_only_image_preparation passes on the branch.
  • Helios image profiles. contract.rs, images/mod.rs, and conditioned.rs list both PaddedGrid and MuseGlimmer; the patch-width and interpolation matches in conditioned.rs list every profile, with no default arm. packing.rs keeps main's class-token layout beside this PR's bracketed-layout additions.
  • The recipe. The decoder, attention, and drafter owner now take metadata per call and use the shared DFlash2Preparation. The recipe also passes --mtp-only to its preparation, which main's recipe-wide test requires.
  • Muse Spark attention. The earlier revision widened ignition/recipes/muse_spark/attention.py. That file still binds metadata and scratch at construction on main, so a per-call caller cannot use it. This revision leaves it and its test byte-identical to main, gives Muse Glimmer its own attention module, and records the fold-back in docs/TODO.txt.
  • Shared modules. ignition/components/dflash2.py is main's text: its DraftScratch already has no block_size default. tests/cli/test_planning.py keeps main's literal per-recipe expectations with a Muse Glimmer entry, instead of the computed expectation the earlier revision introduced. The alias, recipe-list, and sampling-row conflicts are unions with main's Inkling 2 entries.

One fix beyond the rebase. qualify/speculative_benchmark.py parsed speculative metrics with a batch class of [124], which dropped batch-8 and batch-16 rounds. Commit 2 widens it to [0-9]+ with a batch-16 test case.

Checks rerun (this branch against pristine 66b473c3, one interpreter, -m 'not cuda'): tests/preparation, the five affected tests/cli files, the Gemma 4, Muse Spark attention, vision-scratch, and declaration recipe tests, the Muse Glimmer recipe and frontend tests, the benchmark test, and Helios cargo test --lib -- runtime_core frontend::images model::tests (211 passed on the branch, 202 on the base). No failure appears only on the branch. One case fails only on the base: the muse_spark top_p row, which this PR corrects. The description lists the counts and classifies the common failures.

Not verified. No CUDA test of the recipe ran on this base, because both local GPUs were occupied by serving; this includes the new attention module's test_attention_cuda. The branch has not been exported or served. The interpreter's FlashInfer, b12x, and native extension are the originating fork's builds, not 66b473c3's pins. The GPU figures in the description come from fork cores built before the forwards moved to per-call metadata. Cores exported from the fork with the Muse Glimmer profile at number 10 are not supported and must be exported again.

All three commit messages and the description use main's "core" vocabulary and the four-part order, and the description now carries the Discord contact line.

Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…ving spec

The change rebase-pr229-runtime-core rebased upstream PR NVIDIA#229
(NVIDIA/hyperflare-inference, branch pr/muse-glimmer) onto upstream main and
is finished: the branch is published and the pull request reads mergeable.
Its record has to leave the live change tree, and the main Muse Glimmer
serving spec still described a widening of Muse Spark's attention module
that neither this fork nor the published branch carries.

What changed. The change directory moves to
openspec/changes/archive/2026-11-18-rebase-pr229-runtime-core with its
proposal, design, tasks, delta spec, and verification record. In
openspec/specs/muse-glimmer-serving/spec.md, the requirement "The decoder
matches the canonical forward" now states that attention runs through the
recipe's own module, whose forward takes metadata per call, and that Muse
Spark's attention stays as upstream ships it. Its "Spark unchanged" scenario
required Muse Spark's output norm and fused projection to stay byte-identical
after a widening; it now requires an empty diff against the upstream tip for
Muse Spark's attention file and its test, and a docs/TODO.txt entry for
folding the two modules together. No code changes.

Result: no change is live, and the main spec describes the attention
ownership the code has. The archived record states that no CUDA test,
export, or serving ran on the published branch; archiving does not change
that.

Evidence: openspec validate --specs passes for all nine specs, radflow-lint
reported no violations on the change before the move, and the recorded
verdict is PASS-WITH-FINDINGS with its four findings resolved in
verification.md.

Design-Signed-Off-By: Claude Fable 5.2; design-review=ed22
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…formed Glimmer quantization a ValueError, archive with the PR changes

Lands the archived glimmer-activation-check-mapping-guard,
glimmer-pr-disclosure-fixes and upstream-muse-glimmer-pr changes, the synced
muse-glimmer-serving and upstream-contribution-branch specs, and the
glimmer-concurrency-ceiling scaffold. Code for the guard lives on
pr/muse-glimmer (NVIDIA#229, head 3914db3).

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…r and are judged against upstream af0907d

Adds the Muse Glimmer recipe row (z-lab DFlash2 drafter, 1,048,576-token
context; needed until NVIDIA#229 merges), the
history-drafts A/B result, and the passkey probe in the qualification row.
Re-judges every row against upstream af0907d; only the FlashInfer pin
moved (1f8ed8a3 to 2e4f4c2c, still without FlashInfer NVIDIA#67).

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…n; archive

Archives the hotfix-lane change that rebased `pr/muse-glimmer` (upstream
PR NVIDIA#229) onto upstream `main` 91cfb36: the `recipes()` tuple conflict in
`ignition/recipes/__init__.py` resolved as the union, the alias-list
expectation in `tests/cli/test_models.py` extended with `kimi-k3.1-pro`,
head 8d3c0e8 pushed and confirmed mergeable with every commit's trailers
unchanged.

Validation: radflow-lint clean on the archived change; no code in this
repository changes.

Design-Signed-Off-By: Claude Fable 5.1 (claude-fable-5-1); design-review=a38f
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…tream d2b5c5f; archive

PR NVIDIA#229 (pr/muse-glimmer) conflicted with upstream main d2b5c5f, and the
rebase pulled in upstream's fc2c914, which changed the design checklist
digest to 3ad6 and requires commit messages and PR descriptions to explain
why, what changed, the claimed result, and the evidence, in that order.

This commit archives the change that did the rebase and updates one main
spec. The archived record holds the proposal, design (with its peer-review
verdict), tasks with evidence, the spec delta, and the verification report.
openspec/specs/upstream-contribution-branch/spec.md: the requirement
"Commits satisfy upstream's contribution rules" now requires that four-part
order for commit messages and PR descriptions, figures labeled by the base or
package they were measured on, no process assurances, and a full re-review
and re-acknowledgment of every commit after a rebase across a checklist
change. Before, it listed problem, resulting behavior, compatibility,
validation, and authorship.

Result: the PR branch is now 5264a59 on d2b5c5f and GitHub reports it
mergeable; this repository's records describe that state. No code changes.

Evidence: openspec validate --specs passes all 9 specs; the change's
verification.md records a PASS from a fresh-context audit; radflow-lint
reports the change clean apart from one warning that it cannot parse
evidence citations to log files outside the repository. The PR branch's own
validation (branch against base d2b5c5f, CPU only) is recorded in the
archived tasks.md; GPU tests, export, and serving of the branch were not run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
The README patch notes on deploy judged each patch's "Still needed" verdict
against upstream e774a46, the stack base. Upstream main has since moved to
cbf21a1, and qualify/results/dflash2-paths-c16/ gained a measurement of A16
decode on the MXFP8-draft DFlash2 path that the patch notes did not mention.

The "Still needed" line now names cbf21a1 and states that its two commits
above the stack base (NVIDIA#261, WinUI model metadata; NVIDIA#260, RTX Spark revision
detection and failed-download cleanup) change no file a fork patch changes;
the only file both sides edit is docs/TODO.txt. The stack base stays
e774a46 because the fork has not been rebased. The DFlash2 qualification
tools entry now reports that A16 decode lowers code_edit on that path from
555.9 to 518.7 tok/s at concurrency 1 and the 16-client aggregate from
1,231.2 to 1,152.0 tok/s, so the fork serves the path with A16 decode off.

Result: every active patch remains needed against cbf21a1, and the notes
record the served configuration's A16 decision with its numbers.

Evidence: the intersection of files changed in e774a46..upstream/main and
e774a46..deploy contains only docs/TODO.txt. The pull requests that would
retire patches, NVIDIA/spark-local-inference NVIDIA#211, NVIDIA#212 and NVIDIA#229 and
local-inference-lab/flashinfer NVIDIA#67, are open as of 2026-11-11. The A16
figures are copied from qualify/results/dflash2-paths-c16/README.md (arm Q
against arm QA, three trials per setting, recorded in e3ff125). No code
changes; no tests run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=cfcf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…ving spec

The change rebase-pr229-runtime-core rebased upstream PR NVIDIA#229
(NVIDIA/hyperflare-inference, branch pr/muse-glimmer) onto upstream main and
is finished: the branch is published and the pull request reads mergeable.
Its record has to leave the live change tree, and the main Muse Glimmer
serving spec still described a widening of Muse Spark's attention module
that neither this fork nor the published branch carries.

What changed. The change directory moves to
openspec/changes/archive/2026-11-18-rebase-pr229-runtime-core with its
proposal, design, tasks, delta spec, and verification record. In
openspec/specs/muse-glimmer-serving/spec.md, the requirement "The decoder
matches the canonical forward" now states that attention runs through the
recipe's own module, whose forward takes metadata per call, and that Muse
Spark's attention stays as upstream ships it. Its "Spark unchanged" scenario
required Muse Spark's output norm and fused projection to stay byte-identical
after a widening; it now requires an empty diff against the upstream tip for
Muse Spark's attention file and its test, and a docs/TODO.txt entry for
folding the two modules together. No code changes.

Result: no change is live, and the main spec describes the attention
ownership the code has. The archived record states that no CUDA test,
export, or serving ran on the published branch; archiving does not change
that.

Evidence: openspec validate --specs passes for all nine specs, radflow-lint
reported no violations on the change before the move, and the recorded
verdict is PASS-WITH-FINDINGS with its four findings resolved in
verification.md.

Design-Signed-Off-By: Claude Fable 5.2; design-review=ed22
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…formed Glimmer quantization a ValueError, archive with the PR changes

Lands the archived glimmer-activation-check-mapping-guard,
glimmer-pr-disclosure-fixes and upstream-muse-glimmer-pr changes, the synced
muse-glimmer-serving and upstream-contribution-branch specs, and the
glimmer-concurrency-ceiling scaffold. Code for the guard lives on
pr/muse-glimmer (NVIDIA#229, head 3914db3).

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…r and are judged against upstream af0907d

Adds the Muse Glimmer recipe row (z-lab DFlash2 drafter, 1,048,576-token
context; needed until NVIDIA#229 merges), the
history-drafts A/B result, and the passkey probe in the qualification row.
Re-judges every row against upstream af0907d; only the FlashInfer pin
moved (1f8ed8a3 to 2e4f4c2c, still without FlashInfer NVIDIA#67).

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…n; archive

Archives the hotfix-lane change that rebased `pr/muse-glimmer` (upstream
PR NVIDIA#229) onto upstream `main` 91cfb36: the `recipes()` tuple conflict in
`ignition/recipes/__init__.py` resolved as the union, the alias-list
expectation in `tests/cli/test_models.py` extended with `kimi-k3.1-pro`,
head 8d3c0e8 pushed and confirmed mergeable with every commit's trailers
unchanged.

Validation: radflow-lint clean on the archived change; no code in this
repository changes.

Design-Signed-Off-By: Claude Fable 5.1 (claude-fable-5-1); design-review=a38f
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…tream d2b5c5f; archive

PR NVIDIA#229 (pr/muse-glimmer) conflicted with upstream main d2b5c5f, and the
rebase pulled in upstream's fc2c914, which changed the design checklist
digest to 3ad6 and requires commit messages and PR descriptions to explain
why, what changed, the claimed result, and the evidence, in that order.

This commit archives the change that did the rebase and updates one main
spec. The archived record holds the proposal, design (with its peer-review
verdict), tasks with evidence, the spec delta, and the verification report.
openspec/specs/upstream-contribution-branch/spec.md: the requirement
"Commits satisfy upstream's contribution rules" now requires that four-part
order for commit messages and PR descriptions, figures labeled by the base or
package they were measured on, no process assurances, and a full re-review
and re-acknowledgment of every commit after a rebase across a checklist
change. Before, it listed problem, resulting behavior, compatibility,
validation, and authorship.

Result: the PR branch is now 5264a59 on d2b5c5f and GitHub reports it
mergeable; this repository's records describe that state. No code changes.

Evidence: openspec validate --specs passes all 9 specs; the change's
verification.md records a PASS from a fresh-context audit; radflow-lint
reports the change clean apart from one warning that it cannot parse
evidence citations to log files outside the repository. The PR branch's own
validation (branch against base d2b5c5f, CPU only) is recorded in the
archived tasks.md; GPU tests, export, and serving of the branch were not run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
The README patch notes on deploy judged each patch's "Still needed" verdict
against upstream e774a46, the stack base. Upstream main has since moved to
cbf21a1, and qualify/results/dflash2-paths-c16/ gained a measurement of A16
decode on the MXFP8-draft DFlash2 path that the patch notes did not mention.

The "Still needed" line now names cbf21a1 and states that its two commits
above the stack base (NVIDIA#261, WinUI model metadata; NVIDIA#260, RTX Spark revision
detection and failed-download cleanup) change no file a fork patch changes;
the only file both sides edit is docs/TODO.txt. The stack base stays
e774a46 because the fork has not been rebased. The DFlash2 qualification
tools entry now reports that A16 decode lowers code_edit on that path from
555.9 to 518.7 tok/s at concurrency 1 and the 16-client aggregate from
1,231.2 to 1,152.0 tok/s, so the fork serves the path with A16 decode off.

Result: every active patch remains needed against cbf21a1, and the notes
record the served configuration's A16 decision with its numbers.

Evidence: the intersection of files changed in e774a46..upstream/main and
e774a46..deploy contains only docs/TODO.txt. The pull requests that would
retire patches, NVIDIA/spark-local-inference NVIDIA#211, NVIDIA#212 and NVIDIA#229 and
local-inference-lab/flashinfer NVIDIA#67, are open as of 2026-11-11. The A16
figures are copied from qualify/results/dflash2-paths-c16/README.md (arm Q
against arm QA, three trials per setting, recorded in e3ff125). No code
changes; no tests run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=cfcf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 19, 2026
…ving spec

The change rebase-pr229-runtime-core rebased upstream PR NVIDIA#229
(NVIDIA/hyperflare-inference, branch pr/muse-glimmer) onto upstream main and
is finished: the branch is published and the pull request reads mergeable.
Its record has to leave the live change tree, and the main Muse Glimmer
serving spec still described a widening of Muse Spark's attention module
that neither this fork nor the published branch carries.

What changed. The change directory moves to
openspec/changes/archive/2026-11-18-rebase-pr229-runtime-core with its
proposal, design, tasks, delta spec, and verification record. In
openspec/specs/muse-glimmer-serving/spec.md, the requirement "The decoder
matches the canonical forward" now states that attention runs through the
recipe's own module, whose forward takes metadata per call, and that Muse
Spark's attention stays as upstream ships it. Its "Spark unchanged" scenario
required Muse Spark's output norm and fused projection to stay byte-identical
after a widening; it now requires an empty diff against the upstream tip for
Muse Spark's attention file and its test, and a docs/TODO.txt entry for
folding the two modules together. No code changes.

Result: no change is live, and the main spec describes the attention
ownership the code has. The archived record states that no CUDA test,
export, or serving ran on the published branch; archiving does not change
that.

Evidence: openspec validate --specs passes for all nine specs, radflow-lint
reported no violations on the change before the move, and the recorded
verdict is PASS-WITH-FINDINGS with its four findings resolved in
verification.md.

Design-Signed-Off-By: Claude Fable 5.2; design-review=ed22
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 24, 2026
…ving spec

The change rebase-pr229-runtime-core rebased upstream PR NVIDIA#229
(NVIDIA/hyperflare-inference, branch pr/muse-glimmer) onto upstream main and
is finished: the branch is published and the pull request reads mergeable.
Its record has to leave the live change tree, and the main Muse Glimmer
serving spec still described a widening of Muse Spark's attention module
that neither this fork nor the published branch carries.

What changed. The change directory moves to
openspec/changes/archive/2026-11-18-rebase-pr229-runtime-core with its
proposal, design, tasks, delta spec, and verification record. In
openspec/specs/muse-glimmer-serving/spec.md, the requirement "The decoder
matches the canonical forward" now states that attention runs through the
recipe's own module, whose forward takes metadata per call, and that Muse
Spark's attention stays as upstream ships it. Its "Spark unchanged" scenario
required Muse Spark's output norm and fused projection to stay byte-identical
after a widening; it now requires an empty diff against the upstream tip for
Muse Spark's attention file and its test, and a docs/TODO.txt entry for
folding the two modules together. No code changes.

Result: no change is live, and the main spec describes the attention
ownership the code has. The archived record states that no CUDA test,
export, or serving ran on the published branch; archiving does not change
that.

Evidence: openspec validate --specs passes for all nine specs, radflow-lint
reported no violations on the change before the move, and the recorded
verdict is PASS-WITH-FINDINGS with its four findings resolved in
verification.md.

Design-Signed-Off-By: Claude Fable 5.2; design-review=ed22
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Split-From: 889454875812460f4b72a8cd3784f55a5efd1ca7
@original-el8

Copy link
Copy Markdown
Collaborator

Repository-split triage: this PR spans both repositories and remains open for its runtime changes.

  • hyperflare-recipes: the Muse Glimmer recipe, model components, and model qualification tests.
  • This runtime repository: the native image frontend, runtime protocol, and shared checkpoint/preparation changes.

The recipe portion needs a linked PR against the hyperflare_recipes/ package, with its tests and validation evidence carried over. The runtime portion can remain here after removing recipe-owned files.

@flare-autobot

Copy link
Copy Markdown
Collaborator

A case file has been opened for 229.
Case File Intake Report

Future reviews will auto-run 90 minutes after code updates are pushed.

  • Re-review sooner: Call @flare-autobot after push.
  • Opt-out: Include #autobot:ignore in the PR or any comment.

@flare-autobot

Copy link
Copy Markdown
Collaborator

Autobot Review

Full Review for Agents · Value Proposition · Case File

Recommendation: Changes Requested

main moved under this PR on 2026-11-22: ~73% of the diff lands in directories main deleted, so the branch cannot pass main's own boundary test.

Blockers:

  • Split the PR as triage asked — ~4,020 of +5,503 lines (ignition/recipes/muse_glimmer_nvfp4/**, tests/recipes/muse_glimmer_nvfp4/**, tests/frontend/test_muse_glimmer.py (not opened), ignition/reference/, qualify/**, the ignition/recipes/* edits) land in paths main removed in da037284/17bb3c4a, and tests/preparation/test_core_boundary.py:42 asserts ignition/recipes does not exist. Recipe, tests, reference and qualification move to a linked hyperflare-recipes PR; proto/core format, helios/src/frontend/images/* and ignition/preparation/* stay here.
  • Stop selecting text-graph input packing by the image-preparation enum — packing.rs:98-112 dispatches Bracketed on image_preparation == MuseGlimmer; AGENTS.md:356-358 forbids exactly this. Give the windowed layout its own ImageLayoutKind (current last is ClassToken = 10, contract.rs:69) and match on layout alone. No cores exist yet, so nothing needs re-exporting.
  • Meet the charter's qwen38: support compressed-tensors NVFP4 expert-only checkpoints such as ThinkingCap-Qwen3.8-Flash-Next-NVFP4 #74 bar, which the description says is unmet — one export + serve from this head on an SM120 host (a text and an image request suffice), plus either a second supported checkpoint or a maintainer-accepted rejection reason recorded under qwen38: support compressed-tensors NVFP4 expert-only checkpoints such as ThinkingCap-Qwen3.8-Flash-Next-NVFP4 #74. Fork cores from flare-local-inference@deploy, built before the per-call forwards, do not qualify this branch.
  • Settle the alias once — this PR and Add Muse Glimmer mixed-precision text recipe #192 (nvidia/Muse-Glimmer-30B-NVFP4, incompatible quantization layout) both register muse-glimmer-30b-nvfp4, and planning: support checkpoint context ceilings and RecipeParameters.adjust_context #212 edits the same tests/cli/test_models.py row. The decision moves with the recipe.

Should fix:

  • Keep reading FLAREIMG\x01 prepared-image records — record.rs:73/:116 bump to \x02 with no v1 reader, so cached records silently invalidate and re-prepare on upgrade; the description's compatibility paragraph covers only the core protobuf. v1 is exactly v2 minus the two trailing counts (~6 lines).
  • Compare cached window data, not just its length — conditioned.rs:238-239 checks .len() while cu_seqlens on the line above is compared by value, so a corrupt record passes validation and fails at request time in packing.rs:580/:590 instead of re-preparing. Add first()==0, last()==patches, monotone, and a permutation check.
  • Do not widen total_size for every recipe — checkpoint.py:396-404 now accepts the shard file-size sum (safetensors header included) alongside the tensor payload sum; _read_header already pins each shard's extent, so the new arm adds nothing. Gate it on the ModelOpt form and add a rejecting case.
  • bootstrap.py:69 max_active = 4 contradicts recipe.py:69's 8/16 (as do context and prefill_chunk_size), and test_preparation.py:15,:19,:25 pins the 4. Make the three required, or default them from RECIPE and assert against RECIPE.
  • decoder.py:104-106 declares an auxiliary tensor it never writes — __call__:128 returns a forward-local torch.cat. Delete the declaration. Two prose items fold in here: recipe.py:54, model-preparation.md:1494 and the comment at test_frontend_metadata.py:24 justify sampling defaults by inheritance from Muse Spark, which design-review.md:81-83 prohibits; and model-preparation.md:1458 attributes Allocate cache to export when it is a flare run core-load phase (runtime_core/memory.rs:986 (not opened)).
    ... 5 more

Subtract / Simplify:

Could remove ~4,320 of +5,503 added lines:

  • ~4,020 — the recipe-owned files from blocker 1. Within them, delete qualify/results/glimmer-c16/summary.json (+76) rather than moving it: a single smoke run whose schema nothing in the tree produces or reads, from a core this branch cannot generate, whose numbers already appear in the description.
  • ~250 — what has no consumer on main once the recipes leave: quantization.py's new matches_pattern/modelopt_nvfp4_layers (+36; only callers are the extracted configs), tests/preparation/test_quantization.py (not opened) (+127), the gemma4/config.py (not opened) hunk (+4/−25), test_frontend_metadata.py (+7), the 68-line Muse Glimmer doc section, docs/TODO.txt (+8). Move the parser to hyperflare-recipes with its callers instead of leaving it dead here.
  • draft_config.py: 77 → ~20 lines — a PROFILE dict plus DFlash2Config.from_dict(..., expected=PROFILE), as qwen38_dense/draft_config.py:10-25 does; the shared reader also restores five checks this copy drops. Add output_multiplier/final_logit_softcapping to the profile.
  • attention.py: 215 lines docs/TODO.txt:513-520 already promises to delete — every other recipe now takes metadata per call, so move Muse Spark's attention to per-call metadata and delete the Glimmer module rather than shipping two modules kept in step by hand.
    ... 5 more

Nits:

7 nits

To opt out, include #autobot:ignore in your post or comment.

Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 29, 2026
…formed Glimmer quantization a ValueError, archive with the PR changes

Lands the archived glimmer-activation-check-mapping-guard,
glimmer-pr-disclosure-fixes and upstream-muse-glimmer-pr changes, the synced
muse-glimmer-serving and upstream-contribution-branch specs, and the
glimmer-concurrency-ceiling scaffold. Code for the guard lives on
pr/muse-glimmer (NVIDIA#229, head 3914db3).

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 29, 2026
…r and are judged against upstream af0907d

Adds the Muse Glimmer recipe row (z-lab DFlash2 drafter, 1,048,576-token
context; needed until NVIDIA#229 merges), the
history-drafts A/B result, and the passkey probe in the qualification row.
Re-judges every row against upstream af0907d; only the FlashInfer pin
moved (1f8ed8a3 to 2e4f4c2c, still without FlashInfer NVIDIA#67).

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 29, 2026
…n; archive

Archives the hotfix-lane change that rebased `pr/muse-glimmer` (upstream
PR NVIDIA#229) onto upstream `main` 91cfb36: the `recipes()` tuple conflict in
`ignition/recipes/__init__.py` resolved as the union, the alias-list
expectation in `tests/cli/test_models.py` extended with `kimi-k3.1-pro`,
head 8d3c0e8 pushed and confirmed mergeable with every commit's trailers
unchanged.

Validation: radflow-lint clean on the archived change; no code in this
repository changes.

Design-Signed-Off-By: Claude Fable 5.1 (claude-fable-5-1); design-review=a38f
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 29, 2026
…tream d2b5c5f; archive

PR NVIDIA#229 (pr/muse-glimmer) conflicted with upstream main d2b5c5f, and the
rebase pulled in upstream's fc2c914, which changed the design checklist
digest to 3ad6 and requires commit messages and PR descriptions to explain
why, what changed, the claimed result, and the evidence, in that order.

This commit archives the change that did the rebase and updates one main
spec. The archived record holds the proposal, design (with its peer-review
verdict), tasks with evidence, the spec delta, and the verification report.
openspec/specs/upstream-contribution-branch/spec.md: the requirement
"Commits satisfy upstream's contribution rules" now requires that four-part
order for commit messages and PR descriptions, figures labeled by the base or
package they were measured on, no process assurances, and a full re-review
and re-acknowledgment of every commit after a rebase across a checklist
change. Before, it listed problem, resulting behavior, compatibility,
validation, and authorship.

Result: the PR branch is now 5264a59 on d2b5c5f and GitHub reports it
mergeable; this repository's records describe that state. No code changes.

Evidence: openspec validate --specs passes all 9 specs; the change's
verification.md records a PASS from a fresh-context audit; radflow-lint
reports the change clean apart from one warning that it cannot parse
evidence citations to log files outside the repository. The PR branch's own
validation (branch against base d2b5c5f, CPU only) is recorded in the
archived tasks.md; GPU tests, export, and serving of the branch were not run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=a38f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 29, 2026
The README patch notes on deploy judged each patch's "Still needed" verdict
against upstream e774a46, the stack base. Upstream main has since moved to
cbf21a1, and qualify/results/dflash2-paths-c16/ gained a measurement of A16
decode on the MXFP8-draft DFlash2 path that the patch notes did not mention.

The "Still needed" line now names cbf21a1 and states that its two commits
above the stack base (NVIDIA#261, WinUI model metadata; NVIDIA#260, RTX Spark revision
detection and failed-download cleanup) change no file a fork patch changes;
the only file both sides edit is docs/TODO.txt. The stack base stays
e774a46 because the fork has not been rebased. The DFlash2 qualification
tools entry now reports that A16 decode lowers code_edit on that path from
555.9 to 518.7 tok/s at concurrency 1 and the 16-client aggregate from
1,231.2 to 1,152.0 tok/s, so the fork serves the path with A16 decode off.

Result: every active patch remains needed against cbf21a1, and the notes
record the served configuration's A16 decision with its numbers.

Evidence: the intersection of files changed in e774a46..upstream/main and
e774a46..deploy contains only docs/TODO.txt. The pull requests that would
retire patches, NVIDIA/spark-local-inference NVIDIA#211, NVIDIA#212 and NVIDIA#229 and
local-inference-lab/flashinfer NVIDIA#67, are open as of 2026-11-11. The A16
figures are copied from qualify/results/dflash2-paths-c16/README.md (arm Q
against arm QA, three trials per setting, recorded in e3ff125). No code
changes; no tests run.

Design-Signed-Off-By: Claude Opus 5.5 (claude-opus-5-5); design-review=cfcf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raydius added a commit to Raydius/flare-local-inference that referenced this pull request Nov 29, 2026
…ving spec

The change rebase-pr229-runtime-core rebased upstream PR NVIDIA#229
(NVIDIA/hyperflare-inference, branch pr/muse-glimmer) onto upstream main and
is finished: the branch is published and the pull request reads mergeable.
Its record has to leave the live change tree, and the main Muse Glimmer
serving spec still described a widening of Muse Spark's attention module
that neither this fork nor the published branch carries.

What changed. The change directory moves to
openspec/changes/archive/2026-11-18-rebase-pr229-runtime-core with its
proposal, design, tasks, delta spec, and verification record. In
openspec/specs/muse-glimmer-serving/spec.md, the requirement "The decoder
matches the canonical forward" now states that attention runs through the
recipe's own module, whose forward takes metadata per call, and that Muse
Spark's attention stays as upstream ships it. Its "Spark unchanged" scenario
required Muse Spark's output norm and fused projection to stay byte-identical
after a widening; it now requires an empty diff against the upstream tip for
Muse Spark's attention file and its test, and a docs/TODO.txt entry for
folding the two modules together. No code changes.

Result: no change is live, and the main spec describes the attention
ownership the code has. The archived record states that no CUDA test,
export, or serving ran on the published branch; archiving does not change
that.

Evidence: openspec validate --specs passes for all nine specs, radflow-lint
reported no violations on the change before the move, and the recorded
verdict is PASS-WITH-FINDINGS with its four findings resolved in
verification.md.

Design-Signed-Off-By: Claude Fable 5.2; design-review=ed22
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ayout

Multimodal checkpoints whose vision encoder runs windowed self-attention over
32x32 patch cells before merging 2x2 blocks into bracketed image tokens need
native Helios image preprocessing and model-neutral window-layout staging.
Selecting text-graph input packing from `ImagePreparationKind` would couple
graph-input layout staging to an image-preprocessing identifier, which Helios's
contract boundary prohibits. Declaring an independent `WINDOWED_IMAGE_LAYOUT`
(`ImageLayoutKind::Windowed`) keeps preprocessing and graph-input packing
orthogonal so any windowed vision encoder can stage window segment lengths and
raster-to-packed reverse indices without referencing a model profile.

Before this change, `helios/proto/runtime_core.proto` and `helios/src/model/contract.rs`
ended at `PADDED_GRID_IMAGE_PREPARATION = 10` and `CLASS_TOKEN_IMAGE_LAYOUT = 10`,
`helios/src/frontend/images/resize.rs` parameterized resampling with boolean flags
without Lanczos support, and `helios/src/frontend/images/record.rs` encoded only
single-format prepared-image records without window vectors. This commit adds
`MUSE_GLIMMER_IMAGE_PREPARATION = 11`, `MuseGlimmerImageSettings` (`ImageSettings`
member 11), and `WINDOWED_IMAGE_LAYOUT = 11` across `helios/proto/runtime_core.proto`,
regenerated `ignition/preparation/runtime_core_pb2.py`, `ignition/preparation/frontend.py`,
`helios/src/model/contract.rs`, and `helios/src/runtime_core/{describe,protobuf}.rs`.

In `helios/src/frontend/images/resize.rs`, boolean filter arguments are replaced
across callers in the shared resampler module by a `Filter` enum adding
`resize::lanczos` antialiased Lanczos-3 resampling alongside Bilinear and Bicubic.
`helios/src/frontend/images/patch_merge.rs` extracts `bracketed_prompt`, and
`helios/src/frontend/images/muse_glimmer.rs` adds `muse_glimmer::Processor` and
`muse_glimmer::window_plan` producing 32x32 window-ordered `(temporal, channel, y, x)`
patches, four-tap bilinear position interpolation, cumulative window segment
lengths, and raster-to-packed reverse indices. `helios/src/model/prompt.rs` routes
`ImageLayoutKind::Windowed` to bracketed prompt expansion, and
`helios/src/frontend/images/packing.rs` stages `vision_pixel_values`, interpolation
tensors, `vision_positions`, `vision_cu_seqlens`, `vision_cu_window_seqlens`, and
`vision_reverse_index` from `ImageLayoutKind::Windowed` alone while leaving
`ImageLayoutKind::Bracketed` unchanged.

In `helios/src/frontend/images/record.rs`, `ProcessedImages::encode` writes
`FLAREIMG\x02` with trailing window vectors while `ProcessedImages::decode`
branches on the version byte so `FLAREIMG\x01` records written by earlier builds
still decode with empty window vectors and trailing-byte validation intact.
`helios/src/frontend/images/conditioned.rs` removes wildcard arms in `valid_processed`
and compares cached `cu_window_seqlens` and `reverse_index` by value against
`muse_glimmer::window_plan`.

Expected effect: existing runtime cores and `FLAREIMG\x01` prepared-image cache
records continue to load and decode without re-export or cache invalidation, while
older engines reject cores declaring profile 11 or layout 11 with an explicit
unsupported-enum error. Measured result on core `gb202-tp1-202611300932` (exported
on an NVIDIA RTX PRO 6000 Blackwell Workstation Edition SM120 96 GB GPU from
container image `local/flare-ignition:08b3134a-e758d766`, digest
`sha256:1e879befe2b43618270cee6602dcae210c78b9c00b0179ba1fda3213275b04ee`, built
from this tree on the earlier runtime base `0a8c20f44` as commit `08b3134a8` and
companion `local-inference-lab/hyperflare-recipes` commit `8897d9ba` on `18c9055e`
via unpushed lock-pin commit `e758d766`): `flare run` loaded `27.7 GiB` of weights
in `2.6s`, allocated `62.8 GiB` (`9,969,664` KV tokens across `77,888` pages) at
`max_concurrency` `16` and `/v1/models` `max_model_len` `1048576`, served text and
256x256 PNG image completions (100 merged image tokens through `Windowed` staging),
and passed 3/3 passkey retrieval cells at `1,000,060` prompt tokens across depths
`0.1`, `0.5`, and `0.9`.

CPU validation after rebasing onto `8da73911d` (`4ed5d8756` and `8da73911d` touch
only HTTP tool-call ID bounds and two stock Triton/Inductor tests):
`cargo test --no-fail-fast --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server`
passed `1,810` tests on this branch versus `1,797` on pristine `8da73911d`
(including wire round-trip for profile 11, `Windowed` tensor staging, `FLAREIMG\x01`
decoding, cached window-plan value mismatch recomputation, and
`native_pixels_match_canonical_transformers_processor` rerun with a Python
environment providing `MuseGlimmerImageProcessor`), and `pytest tests/preparation tests/cli`
passed `1,157` tests on both this branch and pristine `8da73911d` including
`tests/preparation/test_core_boundary.py` (`0` branch-only failures; `13` Rust
`engram` `io_uring` tests and `123` Python locked-memory/host-environment tests fail
identically on `8da73911d` and this branch under the host `8192 KiB`
`RLIMIT_MEMLOCK` cap). The `74` skipped Python tests (`tests.preparation.test_capture_cublas_workspace_cuda`,
`test_capture_order_cuda`, `test_core_snapshot`, `test_core_storage`,
`test_export_progress`, `test_gelu_storage`, `test_graph_local_scratch_cuda`,
`test_inductor_tuning_cuda`, `test_inductor_workspace_lifetimes_cuda`,
`test_memory_inventory`, `test_module_images`, `test_packed_weights_cuda`,
`test_peer_storage_cuda`, `test_prompt_catalog`, `test_recorded_export_graph_cuda`,
`test_runtime_core`, `test_runtime_dynamo`, `test_scratch_cuda`,
`test_storage_lifetimes_cuda`, `test_unavailable_resources`, and
`test_virtual_storage_cuda`) and `83` ignored Rust `helios` tests (CUDA device,
exported-core, checkpoint-tokenizer, and release-benchmark gates) recorded one per
entry in `docs/TODO.txt` did not run.

Signed-off-by: Ray Dollete <ray@raydollete.com>
Design-Signed-Off-By: Gemini 4 Carbon; design-review=2e5b
@Raydius Raydius changed the title Muse Glimmer 30B NVFP4: single-GPU serving with images, DFlash2 drafting, and a 1,048,576-token context helios, ignition: add Muse Glimmer image profile and Windowed image layout Nov 30, 2026
@Raydius

Raydius commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Rebuilt pr/muse-glimmer on main (8da73911d, head 6ca601d4e) for the runtime portion and opened the companion recipes PR at local-inference-lab/hyperflare-recipes#109 on local-inference-lab/hyperflare-recipes main (18c9055e, head 359a4984). The recipe now registers muse-glimmer-30b-w4a4 (keeping served model name Muse-Glimmer-30B) so it no longer collides with #192's muse-glimmer-30b-nvfp4, and a maintainer may name another suffix if preferred.

Blockers (2026-11-26 review)

  • B1 (split recipe-owned files out of core): Removed all ignition/recipes/, ignition/reference/, qualify/, tests/recipes/, and quantization.py paths from PR #229 (tests/preparation/test_core_boundary.py passes on 6ca601d4e) and moved the recipe, shared ModelOpt helper, reference, docs, and tests to local-inference-lab/hyperflare-recipes#109 without carrying qualify/results/glimmer-c16/summary.json.
  • B2 (stop selecting text-graph input packing from image_preparation): Added WINDOWED_IMAGE_LAYOUT = 11 (ImageLayoutKind::Windowed = 11) and routed prompt.rs and packing.rs (prepare and explicit tensor_layout arms) on ImageLayoutKind::Windowed alone, leaving ImageLayoutKind::Bracketed unchanged from main.
  • B3 (export and serve from the PR heads on SM120; single-checkpoint bar): Built image local/flare-ignition:08b3134a-e758d766 (sha256:1e879befe2b43618270cee6602dcae210c78b9c00b0179ba1fda3213275b04ee) from this tree on earlier main base 0a8c20f44 (08b3134a8, before rebasing onto 8da73911d as 6ca601d4e) + 8897d9ba (tree-identical to 359a4984), exported and served core gb202-tp1-202611300932 on an RTX PRO 6000 Blackwell (max_concurrency 16, /v1/models max_model_len 1048576, passing text, image, and 3/3 1,000,060-token passkey cells at depths 0.1, 0.5, and 0.9), and left the #74 single-checkpoint exception decision explicit because nvidia/Muse-Glimmer-30B-NVFP4 uses incompatible mixed FP8/W4A16 quantization.
  • B4 (settle the alias collision with #192): Renamed the registered alias in local-inference-lab/hyperflare-recipes#109 to muse-glimmer-30b-w4a4 across the recipe, docs, and CLI tests so tests/cli/test_models.py no longer collides with #192.

Should-fix items (2026-11-26 review)

  • SF1 (retain FLAREIMG\x01 prepared-image record reader): ProcessedImages::decode in helios/src/frontend/images/record.rs now branches on the version byte, decoding FLAREIMG\x01 records with empty window vectors and trailing-byte checks intact while writing FLAREIMG\x02, covered by version_1_record_decodes_with_empty_window_vectors_and_rejects_trailing_bytes.
  • SF2 (validate cached window data by value): Factored muse_glimmer::window_plan and updated valid_processed in helios/src/frontend/images/conditioned.rs to compare cached cu_window_seqlens and reverse_index by value against the geometry's computed plan, covered by cached_window_plan_values_are_validated_and_recomputed_on_mismatch.
  • SF3 (do not widen checkpoint.py total_size for every recipe): Dropped the ignition/preparation/checkpoint.py hunk from PR #229 (main already accepts total_size >= payload since upstream's own update), moved weights-only modelopt_nvfp4_layers to hyperflare_recipes/components/modelopt.py, and enforced 4-bit group-16 input_activations in muse_glimmer_nvfp4/config.py.
  • SF4 (cpython_set_order tie-breaking in muse_glimmer.rs): Kept the carried tie-resolution helper unchanged because no maintainer requested changing aspect-ratio selection semantics, verified native_pixels_match_canonical_transformers_processor against MuseGlimmerImageProcessor (2.50s), and recorded the environment gate in docs/TODO.txt.
  • SF5 (draft_config.py versus shared DFlash2Config.from_dict): Kept the recipe-local DraftConfig in local-inference-lab/hyperflare-recipes#109 and documented in its docstring that hyperflare_recipes/components/dflash2_geometry.py's DFlash2Config.from_dict requires output_multiplier == 1.0 without logit softcapping whereas Glimmer's drafter uses 0.19611613513818404 and softcap 20.0.
  • SF6 (decoder.py auxiliary declaration): Re-authored attention.py, decoder.py, and vision.py clean-room with Gemini 4 Carbon under principle 14 and kept PreparedDecoder.auxiliary in decoder.py with a comment naming its two shared readers, components/paged_generation.py and components/parallel_draft.py.
  • SF7 (bootstrap.py defaults versus RECIPE): Updated PreparationConfig.context in muse_glimmer_nvfp4/bootstrap.py to default from RECIPE.context alongside max_active and prefill_chunk_size derived from RECIPE.parameters.
  • SF8 (sampling defaults justified without Muse Spark inheritance): Rewrote muse_glimmer_nvfp4/recipe.py, docs/model-preparation.md, and tests/preparation/test_frontend_metadata.py in local-inference-lab/hyperflare-recipes#109 to state temperature=1.0, top_p=1.0, top_k=-1 as this recipe's own choice rather than inherited from Muse Spark.
  • SF9 (fork-measured inventory numbers): Exported and served core gb202-tp1-202611300932 directly from 08b3134a8 + 8897d9ba so all serving, KV-allocation (62.83 GiB / 9,969,664 tokens), speculative acceptance, and 1,000,060-token passkey figures in both PR descriptions report measurements from these exact branch heads.
  • SF10 (Allocate cache attribution and fork-only commands in docs/model-preparation.md): Removed the Allocate cache export attribution and the qualify.long_context_passkey command from the Muse Glimmer section of docs/model-preparation.md in local-inference-lab/hyperflare-recipes#109, and used flare-cli/target/release/flare run.

Suggestions not taken and why

  • Deleting muse_glimmer_nvfp4/attention.py by refactoring muse_spark/attention.py (Subtract 4): Not taken because muse_spark/attention.py still binds metadata and scratch at construction on hyperflare-recipes main, and rewriting an upstream-owned recipe without a maintainer request exceeds this PR's scope; docs/TODO.txt retains the fold-back item.
  • Replacing draft_config.py with DFlash2Config.from_dict (Subtract 3 / SF5) and deleting PreparedDecoder.auxiliary (SF6): Not taken because shared DFlash2Config.from_dict rejects non-unit output_multiplier / softcap without modifying shared components/dflash2_geometry.py, and deleting decoder.auxiliary breaks components/paged_generation.py and components/parallel_draft.py during preparation.
  • Unrequested test/helper trims (conditioned.rs variant-coverage arrays and cache width check in Subtract 6–7, packing.rs bracketed_extent tuple arity in Subtract 8, muse_glimmer.rs tie-order rewrite in SF4): Not taken so existing profile-coverage guards and carried image-processor behavior stay intact where no defect was demonstrated.

Do the two window inputs this adds to the vision graph need the project owner's approval?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:api Serving API, protocol encoding, tool parsing, and client-visible behavior. area:packaging Package assembly, verification, distribution, inspection, and loading. area:preparation Ignition checkpoint loading, tuning, compilation, capture, and export. enhancement New feature or request model:muse-glimmer Affected recipe or documented reproducer: muse-glimmer. Impact may be broader. triage:design-review Needs a maintainer scope, architecture, or contract decision before implementation or integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants